-- GENERATED SPELL FOR [Anub'ar Darter] --


function spell0_29213(pUnit, Event) --@Dart,n/a--
pUnit:FullCastSpellOnTarget(53602,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29213', 12000, 1)
end

function spell1_29213(pUnit, Event) --@Dart,n/a--
pUnit:FullCastSpellOnTarget(59349,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29213', 12000, 1)
end

function Sorts_29213(pUnit, Event)
local choix_sorts_29213 = math.random(0, 1)
if choix_sorts_29213 == 0 then
pUnit:RegisterEvent('spell0_29213', 1, 1)
end
if choix_sorts_29213 == 1 then
pUnit:RegisterEvent('spell1_29213', 1, 1)
end
end

function mob29213_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29213', math.random(1500, 3000), 1)
end

function mob29213_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29213_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29213_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29213, 1, 'mob29213_Action')
RegisterUnitEvent(29213, 2, 'mob29213_Leave')
RegisterUnitEvent(29213, 3, 'mob29213_Kill')
RegisterUnitEvent(29213, 4, 'mob29213_Die')
